package com.category.service;

import java.util.List;

import com.category.dao.RegionDao;
import com.category.meta.Region;

/**
 * @author Administrator
 *
 */
public class RegionServiceImpl implements RegionService {
	private RegionDao regionDao;
	
	public int deleteRegionById(Long id) {
		return regionDao.deleteRegionById(id);
	}

	public Long insertRegion(Region region) {
		return this.regionDao.insertRegion(region);
	}

	public Region selectRegionById(Long id) {
		return this.regionDao.selectRegionById(id);
	}

	public List<Region> selectRegionsByFatherid(long fatherid) {
		return this.regionDao.selectRegionsByFatherid(fatherid);
	}

	public int updateRegionById(Region region) {
		return this.regionDao.updateRegionById(region);
	}

	public RegionDao getRegionDao() {
		return regionDao;
	}

	public void setRegionDao(RegionDao regionDao) {
		this.regionDao = regionDao;
	}
}
